package com.sgb.kjwl.aroute;

import android.content.Context;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.google.gson.Gson;
import com.sgb.kjwl.model.entity.request.MaterialFilterJson;
import com.sgb.kjwl.view.ui.activity.material.ConcreteDetailActivity2;
import com.sgb.kjwl.view.ui.activity.self.shop.ShopGoodsDetailActivity;
import com.swgk.core.base.aroute.AppRouteConstant;
import com.swgk.core.base.aroute.provider.MerchandiseProvider;

@Route(path = AppRouteConstant.HuiYuan.ROUTER_PATH_MERCHANDISE, name = "商品相关")
public class MerchandiseProviderImpl implements MerchandiseProvider {

    @Override
    public void startConcreteDetailActivity2(Context activity, String id, String filterJson) {
        MaterialFilterJson materialFilterJson = new Gson().fromJson(filterJson, MaterialFilterJson.class);
        ConcreteDetailActivity2.start(activity, id, materialFilterJson);
    }

    @Override
    public void startShopGoodsDetailActivity(Context context, String id, String s, String skuid) {
        ShopGoodsDetailActivity.start(context, id, "", skuid);
    }

    @Override
    public void init(Context context) {

    }
}
